package com.wancaijinfu.ui.index3;

import java.util.ArrayList;

import com.wancaijinfu.actitvity.R;
import com.wancaijinfu.network.MGetNetInterface;
import com.wancaijinfu.ui.index.IndexInterface;
import com.wancaijinfu.widget.BaseFragment;
import com.wancaijinfu.widget.MActionBar;
import com.wancaijinfu.widget.RollViewPager;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

public class Index3Fragment extends BaseFragment {
	private String TAG = "Index0Fragment";

	private ViewHolder[] newsViewHolder = new ViewHolder[3];
	// private ViewHolder[] creditsViewHolder = new ViewHolder[3];
	private RollViewPager viewPager;
	private View adLayout;
	private ArrayList<ImageView> adImages = new ArrayList<ImageView>();
	// private Index0Data data = new Index0Data();
	private IndexInterface activityInfa;
	private boolean isTouch = false;

	


	@Override
	public void setMTitle(MActionBar actionBar) {
		tag = TAG;
		actionBar.setActionBarHideShadow();
		
		actionBar.setActionBarTitle(getString(R.string.account_center));
		actionBar.setActionBarLeft(R.drawable.ic_menu_white_48dp, new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				if (activityInfa != null) activityInfa.toggleMenu();
			}
		});		
	}

	private final MGetNetInterface infa = new MGetNetInterface() {

		@Override
		public void parseSuccess(Object response) {
			// refreshData(response);
		}

		@Override
		public void Authority_fail() {
			// TODO Auto-generated method stub
			
		}

	};
	
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
	
		View view = super.onCreateView(inflater, container, savedInstanceState);
		AddBaseContentView(initView());
		return view;
	}

	private View initView() {
		View view = LayoutInflater.from(getActivity()).inflate(
				R.layout.activity_index3, null);
		return view;
	}

	private class ViewHolder {
		public View view;
		public TextView textView;
	}

	@Override
	public void initResume() {
		// TODO Auto-generated method stub
		
	}

	

}
